<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:ws="http://jax-ws.dev.java.net/spring/core"
       xmlns:wss="http://jax-ws.dev.java.net/spring/servlet"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
       http://jax-ws.dev.java.net/spring/core
        http://jax-ws.dev.java.net/spring/core.xsd
        http://jax-ws.dev.java.net/spring/servlet
        http://jax-ws.dev.java.net/spring/servlet.xsd"
>

	<bean id="usuarioService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://${remote.service.rmi.hostname}:${remote.service.rmi.port}/remote-usuario-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IUsuarioService" />
	</bean>
	
	<bean id="acessoNoticiaService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://${remote.service.rmi.hostname}:${remote.service.rmi.port}/remote-acesso-noticia-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IAcessoNoticiaService" />
	</bean>
	
	<bean id="alternativaEnqueteService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://${remote.service.rmi.hostname}:${remote.service.rmi.port}/remote-alternativa-enquete-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IAlternativaEnqueteService" />
	</bean>
	
	<bean id="anuncioService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://${remote.service.rmi.hostname}:${remote.service.rmi.port}/remote-anuncio-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IAnuncioService" />
	</bean>
	
	<bean id="auditoriaService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://${remote.service.rmi.hostname}:${remote.service.rmi.port}/remote-auditoria-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IAuditoriaService" />
	</bean>
	
	<bean id="categoriaService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://${remote.service.rmi.hostname}:${remote.service.rmi.port}/remote-categoria-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.ICategoriaService" />
	</bean>
	
	<bean id="categoriaUsuarioService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://${remote.service.rmi.hostname}:${remote.service.rmi.port}/remote-categoria-usuario-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.ICategoriaUsuarioService" />
	</bean>
	
	<bean id="comentarioService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://${remote.service.rmi.hostname}:${remote.service.rmi.port}/remote-comentario-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IComentarioService" />
	</bean>
	
	<bean id="contatoService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://${remote.service.rmi.hostname}:${remote.service.rmi.port}/remote-contato-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IContatoService" />
	</bean>
	
	<bean id="emailIndicacaoService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://${remote.service.rmi.hostname}:${remote.service.rmi.port}/remote-email-indicacao-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IEmailIndicacaoService" />
	</bean>
	
	<bean id="enqueteService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://${remote.service.rmi.hostname}:${remote.service.rmi.port}/remote-enquete-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IEnqueteService" />
	</bean>
	
	<bean id="fonteService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://${remote.service.rmi.hostname}:${remote.service.rmi.port}/remote-fonte-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IFonteService" />
	</bean>
	
	<bean id="noticiaService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://${remote.service.rmi.hostname}:${remote.service.rmi.port}/remote-noticia-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.INoticiaService" />
	</bean>
	
	<bean id="respostaEnqueteService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://${remote.service.rmi.hostname}:${remote.service.rmi.port}/remote-resposta-enquete-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IRespostaEnqueteService" />
	</bean>
	
	<bean id="usuarioAndroidService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://${remote.service.rmi.hostname}:${remote.service.rmi.port}/remote-usuario-android-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IUsuarioAndroidService" />
	</bean>
	
	<bean id="usuarioTipoService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://${remote.service.rmi.hostname}:${remote.service.rmi.port}/remote-usuario-tipo-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IUsuarioTipoService" />
	</bean>

	<wss:binding url="/HelloWs">
		<wss:service><!-- nested bean is of course fine -->
			<ws:service bean="#myService" />
		</wss:service>
	</wss:binding>

	<wss:binding url="/Usuario">
		<wss:service><!-- nested bean is of course fine -->
			<ws:service bean="#myUsuarioService" />
		</wss:service>
	</wss:binding>

	<wss:binding url="/AlternativaEnquete">
		<wss:service><!-- nested bean is of course fine -->
			<ws:service bean="#myAlternativaEnqueteService" />
		</wss:service>
	</wss:binding>

	<wss:binding url="/AcessoNoticia">
		<wss:service><!-- nested bean is of course fine -->
			<ws:service bean="#myAcessoNoticiaService" />
		</wss:service>
	</wss:binding>

	<wss:binding url="/Anuncio">
		<wss:service><!-- nested bean is of course fine -->
			<ws:service bean="#myAnuncioService" />
		</wss:service>
	</wss:binding>
	
	<wss:binding url="/Auditoria">
		<wss:service><!-- nested bean is of course fine -->
			<ws:service bean="#myAuditoriaService" />
		</wss:service>
	</wss:binding>
	
	<wss:binding url="/CategoriaUsuario">
		<wss:service><!-- nested bean is of course fine -->
			<ws:service bean="#myCategoriaUsuarioService" />
		</wss:service>
	</wss:binding>
	
	<wss:binding url="/Categoria">
		<wss:service><!-- nested bean is of course fine -->
			<ws:service bean="#myCategoriaService" />
		</wss:service>
	</wss:binding>
	
	<wss:binding url="/Comentario">
		<wss:service><!-- nested bean is of course fine -->
			<ws:service bean="#myComentarioService" />
		</wss:service>
	</wss:binding>
	
	<wss:binding url="/Contato">
		<wss:service><!-- nested bean is of course fine -->
			<ws:service bean="#myContatoService" />
		</wss:service>
	</wss:binding>
	
	<wss:binding url="/EmailIndicacao">
		<wss:service><!-- nested bean is of course fine -->
			<ws:service bean="#myEmailIndicacaoService" />
		</wss:service>
	</wss:binding>
	
	<wss:binding url="/Enquete">
		<wss:service><!-- nested bean is of course fine -->
			<ws:service bean="#myEnqueteService" />
		</wss:service>
	</wss:binding>
	
	<wss:binding url="/Fonte">
		<wss:service><!-- nested bean is of course fine -->
			<ws:service bean="#myFonteService" />
		</wss:service>
	</wss:binding>
	
	<wss:binding url="/Noticia">
		<wss:service><!-- nested bean is of course fine -->
			<ws:service bean="#myNoticiaService" />
		</wss:service>
	</wss:binding>
	
	<wss:binding url="/RespostaEnquete">
		<wss:service><!-- nested bean is of course fine -->
			<ws:service bean="#myRespostaEnqueteService" />
		</wss:service>
	</wss:binding>
	
	<wss:binding url="/UsuarioAndroid">
		<wss:service><!-- nested bean is of course fine -->
			<ws:service bean="#myUsuarioAndroidService" />
		</wss:service>
	</wss:binding>
	
	<wss:binding url="/UsuarioTipo">
		<wss:service><!-- nested bean is of course fine -->
			<ws:service bean="#myUsuarioTipoService" />
		</wss:service>
	</wss:binding>
	
	<!-- this bean implements web service methods -->
	<bean id="myService" class="jaxwsExample.ws.HelloWs">
		<property name="services" ref="services" />
		<property name="usuarioService" ref="usuarioService" />
	</bean>

	<bean id="myUsuarioService" class="br.com.news.ws.UsuarioWs">
		<property name="usuarioService" ref="usuarioService" />
	</bean>
	
	<bean id="myAcessoNoticiaService" class="br.com.news.ws.AcessoNoticiaWs">
		<property name="acessoNoticiaService" ref="acessoNoticiaService" />
	</bean>
	
	<bean id="myAlternativaEnqueteService" class="br.com.news.ws.AlternativaEnqueteWs">
		<property name="alternativaEnqueteService" ref="alternativaEnqueteService" />
	</bean>

	<bean id="myAnuncioService" class="br.com.news.ws.AnuncioWs">
		<property name="anuncioService" ref="anuncioService" />
	</bean>
	
	<bean id="myAuditoriaService" class="br.com.news.ws.AuditoriaWs">
		<property name="auditoriaService" ref="auditoriaService" />
	</bean>
	
	<bean id="myCategoriaUsuarioService" class="br.com.news.ws.CategoriaUsuarioWs">
		<property name="categoriaUsuarioService" ref="categoriaUsuarioService" />
	</bean>
	
	<bean id="myCategoriaService" class="br.com.news.ws.CategoriaWs">
		<property name="categoriaService" ref="categoriaService" />
	</bean>
	
	<bean id="myComentarioService" class="br.com.news.ws.ComentarioWs">
		<property name="comentarioService" ref="comentarioService" />
	</bean>
	
	<bean id="myContatoService" class="br.com.news.ws.ContatoWs">
		<property name="contatoService" ref="contatoService" />
	</bean>
	
	<bean id="myEmailIndicacaoService" class="br.com.news.ws.EmailIndicacaoWs">
		<property name="emailIndicacaoService" ref="emailIndicacaoService" />
	</bean>
	
	<bean id="myEnqueteService" class="br.com.news.ws.EnqueteWs">
		<property name="enqueteService" ref="enqueteService" />
	</bean>
	
	<bean id="myFonteService" class="br.com.news.ws.FonteWs">
		<property name="fonteService" ref="fonteService" />
	</bean>
	
	<bean id="myNoticiaService" class="br.com.news.ws.NoticiaWs">
		<property name="noticiaService" ref="noticiaService" />
	</bean>
	
	<bean id="myRespostaEnqueteService" class="br.com.news.ws.RespostaEnqueteWs">
		<property name="respostaEnqueteService" ref="respostaEnqueteService" />
	</bean>
	
	<bean id="myUsuarioAndroidService" class="br.com.news.ws.UsuarioAndroidWs">
		<property name="usuarioAndroidService" ref="usuarioAndroidService" />
	</bean>
	
	<bean id="myUsuarioTipoService" class="br.com.news.ws.UsuarioTipoWs">
		<property name="usuarioTipoService" ref="usuarioTipoService" />
	</bean>

	<!-- Define o arquivo que é usado para buscar as informações de configuração. -->
	<bean
		class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer">
		<property name="location"
			value="/WEB-INF/classes/conf/news-application-conf.properties" />
	</bean>



</beans>